package IC.lir.Instrunction;

public class VaribleMemory extends Memory {

	private String _value;
	
	public VaribleMemory (String value)
	{
		_value = value;
	}
	
	public String GetValue() { return _value; }
	public String toString() { return _value; }
	
	public Instruction Store(Storable what) { return new MoveInstruction(this, what); }
	public Register GetStoreRegister(int regNum) { return new Register(regNum); }
	public Instruction Load(int registerNum) { return Load(new Register(registerNum)); }
	public Instruction Load(Register toWhere) { return new MoveInstruction(toWhere, this); }
	
	public int GetNumOfRegisters() { return 0; }
}
